<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<f:view>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<h:form id="login">
		<table>
			<tr>
				<td>
					User name : 
				</td>
				<td>
					<h:inputText value="#{login.usserName }" label="User Name"></h:inputText>
				</td>
			</tr>
			<tr>
				<td>
					Password : 
				</td>
				<td>
					<h:inputSecret value="#{login.password }" label="Password"></h:inputSecret>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<h:outputLabel value="#{login.message }" style="color:red"></h:outputLabel>
				</td>
			</tr>
			<tr>
				<td>
					
				</td>
				<td>
					<h:commandButton value="Login" action="#{login.login() }"></h:commandButton>	
				</td>
			</tr>
		</table>
	</h:form>
</body>
</html>
</f:view>